package com.zhanghe.study.design_pattern.visitor_pattern;

/**
 * @author zh
 * @date 2022/10/24 12:02
 */
public class ConcreteVisitorA implements Visitor{
    @Override
    public void visitConcreteElementA(ConcreteElementA element) {
        element.operationA();
    }

    @Override
    public void visitConcreteElementB(ConcreteElementB element) {
        element.operationB();
    }
}
